package com.thirdpartylogin.trainingfacilityfrontend.controller;

import com.thirdpartylogin.trainingfacilityfrontend.enums.Resp;
import com.thirdpartylogin.trainingfacilityfrontend.service.lostitemRetrievalService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController   //创建对象
public class lostitemRetrievalController {

    @Resource
    lostitemRetrievalService retrievalService;


    @RequestMapping("/lostandfound")
    public Resp<Map<String,Object>> LostAndFoundSearcher(@RequestParam Integer pageIndex,@RequestParam Integer pageSize,String data,String location){
        return Resp.success(retrievalService.LostAndFoundSearcher(data,location,pageIndex,pageSize));
    }
}
